package net.aiion.weave.impl.messaging;

import net.aiion.weave.spi.messaging.MessageReceiverContext;

public class MessageReceiverContextImpl implements MessageReceiverContext
{
    private final String queueName;
    private final Object message;
    private Object result;

    public MessageReceiverContextImpl(final String aQueueName, final Object aMessage) {
        queueName = aQueueName;
        message = aMessage;
    }

    @Override
    public String getQueueName() {
        return queueName;
    }

    @Override
    public Object getMessage() {
        return message;
    }

    @Override
    public void setResult(final Object aResult) {
        result = aResult;
    }

    @Override
    public Object getResult() {
        return result;
    }
}
